package com.ym.pms.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * user
 * @author 
 */
@Data
@ApiModel(value = "用户表",description="用户对象user")
public class User implements Serializable {
    @ApiModelProperty(value = "用户id（主键，自增）")
    private Long uId;

    @ApiModelProperty(value="用户名",name="username",example="张三")
    private String uName;

    @ApiModelProperty("用户密码")
    private String uPassword;

    @ApiModelProperty("用户手机号码")
    private String uPhoneno;

    @ApiModelProperty("用户性别")
    private String uGender;

    @ApiModelProperty("用户邮箱")
    private String uEmail;

    @ApiModelProperty("用户出生日期，yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date uBirthday;

    @ApiModelProperty("用户身份证号")
    private String uIno;

    @ApiModelProperty("户口所在地")
    private String uHk;

    @ApiModelProperty("用户职位")
    private String uPosition;

    @ApiModelProperty("用户铺位（住哪）")
    private String uBkcoding;

    @ApiModelProperty("用户QQ")
    private String uQqno;

    private static final long serialVersionUID = 1L;
}